<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        /*var obj = new Object();
        obj.name = "張";
        obj.age = 123;
        obj.fun = function () {
            alert(this.name + this.age);
        }*/
        var obj = {
            name : "阿道夫",
            age : 123,
            fun : function () {
                alert(this.name + this.age);
            }
        }

        alert(obj.name);
        obj.fun();
    </script>
</head>
<body>

</body>
</html>